<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>系统管理-后台</title>
<import type="css" file="Static.css.layout-default-latest,Admin.Default.css.style" />
<import file="Static.js.jquery,Static.js.jquery#layout-latest#min" />
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<import file="Static.js.respond#src" />
<![endif]-->
</head>
<body>
<div class="ui-layout-north">
	<div class="header">
        <div class="logo"><a href="{:U('Admin/Index/index')}"><img src="__PUBLIC__/Admin/Default/images/logo.png" alt="logo"/></a></div>
        <ul class="nav navbar-nav" id="navbar_nav">
            <volist name="admin_mune" id="vo" key="i">
            <li id="menu_{$vo['id']}"><a href="#">{$vo['name']}</a></li>
            </volist>
        </ul>
        
        <div class="pull-right">
            <ul>
            	<li>（{$admin['username']}）</li>
                <li><a href="{:U('Home/Index/index')}" target="_blank">网站首页</a></li>
                <li><a href="{:U('Admin/Index/index')}">后台首页</a></li>
                <li><a href="{:U('Admin/Index/logout')}">退出</a></li>
            </ul>
        </div>
    </div>
</div>
<div class="ui-layout-west">
    <!-- 边栏 -->
    <div id="sidebar" class="sidebar">
        <!-- 子导航 -->
        <volist name="admin_mune" id="nav" key="i">
        <ul id="menu_{$nav['id']}_list" style="display:none;">
          <h3><i class="glyphicon glyphicon-folder-open">★</i> {$nav[name]}</h3>
          <volist name="nav['_child']" id="vo">
          <li><a href="{:U($vo['url'].'?'.$vo['data'])}" target="main_frame"><i class="glyphicon glyphicon-file">☆</i> {$vo['name']}</a></li>
          </volist>
        </ul>
        </volist>
        <!-- /子导航 -->
    </div>
    <!-- /边栏 -->
</div>
<div class="ui-layout-center">
	<iframe width="100%" height="100%" src="{:U('Admin/Index/welcome')}" frameborder="0" allowtransparency="true" name="main_frame"></iframe>
</div>
</body>
</html>
<script>
    $(document).ready(function () {
		//头部菜单设置
		$('#sidebar > ul').eq(0).show();
		$('#navbar_nav > li').bind('click',function(e){
			var id = $(this).attr('id');
            $(this).siblings("li").removeClass("select");
            $(this).addClass("select");
			$("#"+id+"_list").siblings('ul').hide();
			$("#"+id+"_list").show();
		})

        $('#sidebar > ul > li').bind('click',function(e){
            $(this).siblings("li").removeClass("select");
            $(this).addClass("select");
        })
		
		$('.dropdown-toggle').mouseenter(function(){
			$('.dropdown-menu').slideDown('slow');
		}).mouseleave(function(){
			$('.dropdown-menu').slideUp('slow');
		});
		
        $('body').layout({
			scrollToBookmarkOnLoad:		false,
			applyDefaultStyles: true,
			north: {
				size:					"auto",
				spacing_open:			0,
				closable:				false,
				resizable:				false
			},
            west__closable:           false,
		});
    });

</script>